package com.slmxz.tms.document.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.slmxz.tms.common.model.Option;
import com.slmxz.tms.document.model.entity.Contractor;
import com.slmxz.tms.document.model.vo.ContractorVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 承运商信息Mapper接口
 * @author sunyao
 * @Date 2024-11-15
 */
public interface ContractorMapper extends BaseMapper<Contractor> {

    /**
     * 获取承运商信息分页数据
     * @param page 分页对象
     * @return
     */
    List<ContractorVO> selectContractorPage(IPage<ContractorVO> page, @Param("contractor")ContractorVO contractor);

    /**
     * 获取承运商信息的下拉框,默认只获取50条
     * @param contractor
     * @return
     */
    List<Option<String>> selectOption(@Param("contractor") ContractorVO contractor);
}
